<?php
/**
 * Junction_Table
 * 
 * Database table
 * 
 * @author Patrick J. Mizer <patrick.mizer@gmail.com>
 */
class Junction_Table
{
	/**
	 * Database to which the table belongs
	 * @var Junction_Database
	 */
	private $_db;
	
	/**
	 * Name of the table
	 * @var string
	 */
	private $_name;
	
	/**
	 * Junction_Table Constructor
	 * 
	 * @param string name of table
	 */
	public function __construct($name)
	{
		$this->_name 	= $name;
	}
	
	/**
	 * Adds a column to the table
	 * @param Junction_Column $column
	 * @return void
	 */
	public function setColumn(Junction_Column $column)
	{
		$this->_columns[$column->getName()] = $column;
	}
	
	/**
	 * Getter for $_name
	 * @return string name
	 */
	public function getName()
	{
		return $this->_name;
	}
	
}

?>
